package com.woniu.bank.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 联保协议视图类
 *
 * @author ：zhuboyuan,晨星
 * @date ：Created in 2023/1/7 14:29
 */
@Data
@ApiModel(description = "返回的联保协议的相关信息")
public class AgreementGroupVO {

    @ApiModelProperty(value = "联保协议ID")
    private Integer agreementId;

    @ApiModelProperty(value = "联保协议编号")
    private String agreementNo;

    @ApiModelProperty(value = "联保小组名称")
    private String groupName;

    @ApiModelProperty(value = "联保小组总额度")
    private Integer groupLimit;

    @ApiModelProperty(value = "联保协议生效日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date jointInsuranceStartDate;

    @ApiModelProperty(value = "联保协议到期日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date coInsuranceExpirationDate;

    @ApiModelProperty(value = "登记人")
    private String registrant;

    @ApiModelProperty(value = "登记网点")
    private String registrationNetwork;

    @ApiModelProperty(value = "协议状态")
    private String agreementStatus;

}
